
// 管理项目用户相关接口
import service from "./service";
// 用户相关请求地址
const API = {
  GET_ADDRESS_URL: '/address'

}
let userId = localStorage.getItem("userId")
export const getAddressApi = () => service.get(API.GET_ADDRESS_URL + `/${userId}`)
export const addAddressApi = (data) => service.post(API.GET_ADDRESS_URL, data)
export const updateAddressApi = (data) => service.put(API.GET_ADDRESS_URL, data)
export const deleteAddressApi = (id) => service.delete(API.GET_ADDRESS_URL + `/${id}`)

// export const getCart = (id) => service.get(API.GET_CART_URL + `/${id}`)
// export const deleteCart = () => service.post(API.DELETE_URL, [4])
// export const getCart = () => service.get(API.LOGIN_URL)